QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Highlight Styles

Labels

ASCII
HighlightStyle
Binary
high (= 0x68696768 )

Data Format

No data.

Data Size

0

Description

A highlight style object is used to specify attributes to be applied to selected geometric objects during rendering. Any renderer that supports highlighting will use the attributes specified by a highlight style object to override incompatible attributes assigned to affected geometric objects in other ways. The attributes specified by a highlight style object are applied to a geometric object only if that geometric object also has a highlight state attribute that is set to True . See "Highlight State" , for complete details on highlight state attributes.

Parent Hierarchy

Shared, shape, style.

Parent Objects

None.

Child Objects

Attribute set (required).

Example

BeginGroup ( DisplayGroup ( ) )
    Container (
        HighlightStyle ( )                      # highlight style object
        Container (
            AttributeSet ( )
            DiffuseColor ( 0 0 1 )              # highlight attribute
        )
    Container (
        Polygon ( ... )
        Container (
            AttributeSet ( )
            DiffuseColor ( 1 0 0 )
            HighlightState ( True )     # polygon will be highlighted
        )
    )
    Container (
        Box
        Container (
            AttributeSet ( )
            DiffuseColor ( 0 1 0 )
            HighlightState ( False )# box will not be highlighted
        )
    )
    Container (
        Line ( ... )                    # line will not be highlighted
        Container (                             
            AttributeSet ( )
            DiffuseColor ( 1 1 1 )
        )
    )
)
EndGroup ( )

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |